package cn.wolfcode.wolf2w.job.task;

import cn.wolfcode.wolf2w.common.core.constant.SecurityConstants;
import cn.wolfcode.wolf2w.strategy.api.RemoteStrategyRankService;
import cn.wolfcode.wolf2w.strategy.api.RemoteStrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("redisDataPersistenceTask")
public class RedisDataPersistenceTask {
    @Autowired
    private RemoteStrategyService remoteStrategyService;

    public void redisDataPersistenceHandle(){
        System.out.println("--------------------------redis数据持久化-begin--------------------------");

        remoteStrategyService.redisDataPersistenceHandle(SecurityConstants.INNER);

        System.out.println("--------------------------redis数据持久化-end--------------------------");
    };
}
